package com.bardpub.weblite.ui 
{
	import flash.text.TextField;
	/**
	 * Copyright © 2010-2012, BardPub.com
	 * @fileName 
	 * @author LittleBard
	 * @version 1.0
	 * @date 
	 * @descrition 
	 * @others
	 * @history
	 */
	
	public class TextLoadbar extends BaseLoadbar
	{
		public var txt:TextField;
		
		
		override public function resize(stageWidth:Number, stageHeight:Number):void 
		{
			super.resize(stageWidth, stageHeight);
			this.x = (stageWidth - this.width) / 2;
			this.y = stageHeight / 2;
		}
		
		override public function get percent():Number { return super.percent; }
		
		override public function set percent(value:Number):void 
		{
			super.percent = value;
			if (txt != null)
			{
				txt.text = label + " " + value + "%";
			}
		}
		
		public function TextLoadbar() 
		{
			super();
		}
		
	}

}